import React from 'react';
import ReactDOM from 'react-dom';
console.log(React.Component)
class App123 extends React.Component {

  // constructor(ppp) {
  //   super(ppp); // 相当于call继承  通过super()实现了给当前实例添加props属性
  //   console.log(ppp)

  // }
  render() {
    console.log(this.props)
    return <div className=''>

    </div>;
  }
}

function App(props) {
  console.log(props)
  return <h1>hello</h1>
}

ReactDOM.render(<App qq={123} ww={234} />, document.getElementById('root'))